package com.woniu.car.parameter;


import io.swagger.annotations.ApiModelProperty;

import lombok.Data;


import javax.validation.constraints.Future;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class CouponLogsParameter {
    @Min(value = 0,message = "id不能为负数")
    @ApiModelProperty(value = "优惠券id",example = "1")
    private Integer couponLogsId;
    @Min(value=0,message = "用户id不能为负数")
    @ApiModelProperty(value = "用户id",example = "1")
    private Integer userId;
    @Min(value=0,message = "创建角色不能为负数")
    @ApiModelProperty(value = "创建人id")
    private Integer createRole;
    @Min(value=0,message = "优惠券id不能为负数")
    @ApiModelProperty(value = "优惠券id",example = "1")
    private Integer couponId;
    @NotNull(message = "优惠券编号必须存在")
    @ApiModelProperty(value = "优惠券编号")
    private String couponNo;
    @NotNull(message = "优惠券类型必须存在")
    @ApiModelProperty(value = "种类编号",example = "1")
    private Integer type;
    @Min(value=0,message = "抵扣金额不能为负")
    @ApiModelProperty(value = "满减金额",example = "0.0")
    private Double deductionMoney;
    @Min(value=0,message = "折扣比例不能为负数")
    @ApiModelProperty(value = "折扣比例",example = "0.0")
    private Double discountMoney;
    @Min(value=0,message = "无门槛抵扣金额不能为负数")
    @ApiModelProperty(value = "无门槛抵扣金额",example = "0.0")
    private Double fullMoney;
    @Min(value=0,message = "优惠券编号不能为负数")
    @ApiModelProperty(value = "优惠券编号id")
    private Integer couponReceiveId;
    @Future(message = "创建时间不能为未来创建")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
